show warnings for all members of the workspace
authorAndy Russell <arussell123@gmail.com>
Wed, 16 Nov 2016 21:04:31 +0000 (16:04 -0500)
committerAndy Russell <arussell123@gmail.com>
Thu, 8 Dec 2016 21:11:19 +0000 (16:11 -0500)
src/cargo/ops/cargo_compile.rs

index e086315936a6aa489f750677b6189e0e592f7b80..a0e70e9ba3f7105e174e0dbf4ce3bf8161e56d98 100644 (file)
@@ -98,8 +98,8 @@ pub enum CompileFilter<'a> {
 
 pub fn compile<'a>(ws: &Workspace<'a>, options: &CompileOptions<'a>)
                    -> CargoResult<ops::Compilation<'a>> {
-    if let Some(root_package) = ws.current_opt() {
-        for key in root_package.manifest().warnings().iter() {
+    for member in ws.members() {
+        for key in member.manifest().warnings().iter() {
             options.config.shell().warn(key)?
         }
     }